/**
 * 
 */
package com.nh.orderEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.nh.entity.BaseEntity;

/**
 * 项目名称：OrderingMiddleware
 * 
 * 类名称：XfEntity
 * 
 * 类描述：
 * 
 * 创建人：李兴建
 * 
 * E-mail:lxj08193@163.com
 * 
 * 创建时间：2013-1-15 下午09:26:38
 * 
 * 修改人：李兴建
 * 
 * 修改时间：2013-1-15 下午09:26:38
 * 
 * 修改备注：
 * 
 * @version
 */
@Entity
@Table(name = "c_xf")
public class XfEntity extends BaseEntity {
	private int xfid;// 消费单id
	private String code;// 单据编号
	private int peopleCount;// 人数
	private int tableId;// 桌子id
	private String remake;// 备注

	// 结账标志 默认为0
	private boolean accountState;

	/**
	 * @return the xfid
	 */
	@Id
	@Column(name = "消费单id")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "XNKY_BASE_IDENTITY")
	@SequenceGenerator(name = "XNKY_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	public int getXfid() {
		return xfid;
	}

	/**
	 * @param xfid
	 *            the xfid to set
	 */
	public void setXfid(int xfid) {
		this.xfid = xfid;
	}

	/**
	 * @return the code
	 */
	@Column(name = "单据编号")
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the peopleCount
	 */
	@Column(name = "人数")
	public int getPeopleCount() {
		return peopleCount;
	}

	/**
	 * @param peopleCount
	 *            the peopleCount to set
	 */
	public void setPeopleCount(int peopleCount) {
		this.peopleCount = peopleCount;
	}

	/**
	 * @return the tableId
	 */
	@Column(name = "桌子id")
	public int getTableId() {
		return tableId;
	}

	/**
	 * @param tableId
	 *            the tableId to set
	 */
	public void setTableId(int tableId) {
		this.tableId = tableId;
	}

	/**
	 * @return the remake
	 */
	@Column(name = "备注")
	public String getRemake() {
		return remake;
	}

	/**
	 * @param remake
	 *            the remake to set
	 */
	public void setRemake(String remake) {
		this.remake = remake;
	}

	@Column(name = "结帐标志")
	public boolean getAccountState() {
		return accountState;
	}

	public void setAccountState(boolean accountState) {
		this.accountState = accountState;
	}

}
